<?php
namespace com\mvc\orm\dao;
class GenericObjectDB{
	private $name;
	private $value;
	private $column;
	private $operator;
	private $type;
	
	public function __construct(){
		$size = func_num_args();
		$args = func_get_args();
		if ($size<2){
			throw new \Exception("Número de argumentos incorrecto", "-1", null);
		}else{
			foreach ($args as $key=>$value){
				if ($key==0){
					$this->value = $value;
				}else if ($key==1){
					$this->name = $value;
				}else if ($key==2){
					$this->type = $value;
				}else if ($key==3){
					$this->column = $value;
				}else if ($key==4){
					$this->operator = $value;
				}
			}
		}
	}
	public function getName(){
		return $this->name;
	}
	public function getValue(){
		return $this->value;
	}
	public function getColumn(){
		return $this->column;
	}
	public function getOperator(){
		return $this->operator;
	}
	public function getType(){
		return $this->type;
	}
	public function setName($name){
		$this->name = $name;
	}
	public function setValue($value){
		$this->value = $value;
	}
	public function setColumn($column){
		$this->column = $column;
	}
	public function setOperator($operator){
		$this->operator = $operator;
	}
	public function setType($type){
		$this->type = $type;
	}
	
}